Skip to main content

fridgetagmapping

Table: fridgetagmapping

The fridgetagmapping table stores the mapping between fridge tags and ILR (Ice-Lined Refrigerator) QR codes.
It tracks creation, modification, and voiding of these mappings for cold chain management.


Columns

Column NameData TypeConstraintsDescription
fridgeTagMappingIdint(11)NOT NULL, AUTO_INCREMENTUnique identifier for each fridge tag mapping
createdDatedatetimeNULLTimestamp when the mapping record was created
lastEditedDatedatetimeNULLTimestamp when the mapping record was last modified
fridgeTagQrCodevarchar(255)NULLQR code of the fridge tag
ilrQrCodevarchar(255)NULLQR code of the ILR unit
isVoidedtinyint(1)NOT NULLFlag indicating if the mapping is voided (1 = voided, 0 = active)
voidedDatedatetimeNULLTimestamp when the mapping was voided
createdByUserIdint(11)NULLUser who created the mapping record
lastEditedByUserIdint(11)NULLUser who last edited the mapping record

Indexes

  1. PRIMARY - Primary key on fridgeTagMappingId

Foreign Key Relations

  • None explicitly defined, but createdByUserId and lastEditedByUserId typically reference user.mappedId.

Usage Notes

  • Maintains the link between fridge tags and ILR units for monitoring purposes.
  • isVoided and voidedDate allow tracking inactive or removed mappings.
  • Audit fields (createdByUserId, lastEditedByUserId, createdDate, lastEditedDate) help maintain change history.
  • Useful for cold chain compliance reporting and fridge monitoring workflows.